package com.amit.hibernate1;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;

public class Lab1Client1 {

	public static void main(String[] args) {
		
		
		SessionFactory sessionfactory=CHibernateUtil.getfactory();
		Session session=sessionfactory.openSession();
		Transaction tx=session.beginTransaction();
		
	Customer cust=new Customer("amit", "amityadav@gmail.com", 12333, "lko", 100.0);
	session.save(cust);
	tx.commit();
	session.close();
	System.out.println("Record inserted");
		
		
		
	}

}
